]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Clean up commented code a bit
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 20 Sep 2012 22:31:24 +0000 (19:31 -0300)
committerJasper St. Pierre <jstpierre@mecheye.net>
Sat, 22 Sep 2012 18:39:22 +0000 (15:39 -0300)
Since we changed the grabHelper.grab call to be in a conditional,
it's been a little clear what the comment has been referring to.

https://bugzilla.gnome.org/show_bug.cgi?id=684458

js/ui/messageTray.js

index 30cb6a7e6b7332c72fd6e97286fd4f6740813ab5..6892ba193160386ba5193fce8a7529fd7fd3d16f 100644 (file)
@@ -2031,8 +2031,10 @@ const MessageTray = new Lang.Class({
         // Don't actually take a modal grab in the overview.
         // Just add something to the grab stack that we can
         // pop later.
+        let modal = !this._overviewVisible;
+
         if (!this._grabHelper.grab({ actor: this.actor,
-                                     modal: !this._overviewVisible,
+                                     modal: modal,
                                      onUngrab: Lang.bind(this, this._escapeTray) })) {
             this._traySummoned = false;
             return;